/*
 * @Description: 订单管理api
 * @Author: Fengqin
 * @Date: 2021-06-24 21:13:04
 * @LastEditors: Fengqin
 * @LastEditTime: 2021-06-28 10:59:30
 */
import { get, post } from '@/utils/request'
// 分页查询订单
export function pageQuery(data) {
    return get('/order/pageQuery', data)
}
// 确认订单
export function confirmOrder(data) {
    return get('/order/confirmOrder', data)
}
// 通过ID删除
export function deleteById(data) {
    return get('/order/deleteById', data)
}
// 通过ID查询订单详情
export function findById(data) {
    return get('/order/findById', data)
}
// 拒绝订单
export function rejectOrder(data) {
    return get('/order/rejectOrder', data)
}
// 派单
export function sendOrder(data) {
    return get('/order/sendOrder', data)
}
// 员工服务结束
export function serviceCompleteOrder(data) {
    return get('/order/serviceCompleteOrder', data)
}
//提交订单
export function submitOrder(data) {
    return post('/order/submitOrder', data)
}
// 接单
export function takeOrder(data) {
    return get('/order/takeOrder', data)
}
// 取消派单
export function cancelSendOrder(data) {
    return get('/order/cancelSendOrder', data)
}